package api

import (
	"github.com/prometheus/common/log"
	"google.golang.org/grpc"
)

// AppID .
const AppID = "grpc"

// NewClient new grpc client
func NewClient() (DemoClient, error) {
	conn, err := grpc.Dial("grpc:9000", grpc.WithInsecure())
	if err != nil {
		log.Error("new client fail, msg %s", err.Error())
	}
	return NewDemoClient(conn), nil
}

// 生成 gRPC 代码
//go:generate kratos tool protoc --grpc --bm api.proto
